<template>
  <div class="user-layout">
    <UserHeader />
    <main class="main-content">
      <router-view />
    </main>
    <UserFooter />
  </div>
</template>

<script setup>
import UserHeader from '@/components/UserHeader.vue'
import UserFooter from '@/components/UserFooter.vue'
</script>

<style scoped>
.user-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  margin-top: 120px; /* 添加顶部边距，值等于导航栏高度 */
}
</style>